import {Injectable} from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class DynamicFormDataService {

  private formData: any;

  public setFormData(data: any) {
    this.formData = data;
  }

  public getFormData(): any {
    return this.formData;
  }

  public clearFormData() {
    this.formData = undefined;
  }
}
